Skip to content

feat: expand complete tool inputs inline - #89

Merged
kahme247 merged 3 commits into
ompweb-dev:mainfrom
andrebrait:fix/expand-tool-input
Sep 13, 2026
Merged

kahme247 merged 3 commits into
ompweb-dev:mainfrom
andrebrait:fix/expand-tool-input

Conversation

@andrebrait

Copy link
Copy Markdown
Collaborator

Summary

  • Keep compact command previews by default and add an independent Show full input / Collapse input button.
  • Display every input argument, including multiline eval code, edit patches, and nested hub arguments, as selectable wrapped text.
  • Preserve existing output visibility and tool-row/group behavior; localize controls in English, Japanese, and Simplified Chinese.

Expanded inputs intentionally use normal transcript scrolling rather than a nested fixed-height scroller, so long code and patches remain easy to read and select. Output-collapse defaults are explicitly out of scope.

Verification

  • Typecheck and lint passed.
  • Existing test suite: 688 passed, 1 skipped, 0 failures.
  • Real Chromium, actual MessageView component in a temporary Next.js fixture: hub/eval/edit/bash at 320, 768, 1024, and 1440px; complete input, unchanged output, no horizontal clipping, Enter/Space expansion and collapse.
  • Pointer activation and mobile screenshots verified; fixture removed.
  • Condensed adversarial review: no blocking findings.

No production deployment is included.

@andrebrait

Copy link
Copy Markdown
Collaborator Author

Review follow-up b5d973e fixes stale grouped tool inputs during argument streaming and adds a focused red/green regression for full input expansion, multiline/nested values, live updates, collapse, and unchanged output. Final local gates: typecheck/lint pass; 689 tests passed, one existing platform skip. Final Ubuntu and Windows CI is green: https://github.com/kahme247/ompweb/actions/runs/34723442969. CodeRabbit reported no actionable comments; both actionable Copilot findings on companion fork PR #22 are addressed.

@andrebrait

Copy link
Copy Markdown
Collaborator Author

Display-only follow-up 265f6d2 spells out the i field as intent in the expanded input view; raw tool arguments are unchanged. Verified with a temporary consumer-render check, existing MessageView tests, and packaged/public Chromium checks. Ubuntu/Windows CI is green: https://github.com/kahme247/ompweb/actions/runs/34737463551. Integrated and deployed locally as 678ece5; API/native OMP untouched.

@kahme247
kahme247 merged commit e0ffaaf into ompweb-dev:main Sep 13, 2026
3 checks passed
@andrebrait
andrebrait deleted the fix/expand-tool-input branch September 14, 2026 06:37
kahme247 added a commit that referenced this pull request Sep 14, 2026
* test: replace deprecated React test renderer

* fix(review): migrate MessageView interactive test off react-test-renderer, unify lockfile

- MessageView.test.mjs: the grouped-tool-inputs test (added by #89 after this branch) drove Collapsible via TestRenderer internals; reworked onto Testing Library over the real DOM (row triggers, input toggles, rerender) with identical assertions. Last react-test-renderer consumer gone.
- package-lock.json: regenerated for the merged dependency set (main's dbus-next plus the Testing Library/jsdom swap).

---------

Co-authored-by: kahme247 <kahme247@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants